<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let str="java,javascript,php,sql,python";
        // console.log(str.includes("phpx"));
        console.log(str.startsWith("java"));
        console.log(str.endsWith("python"));

        console.log("啊".repeat(10));
        console.log("h".padStart(6,'x'));
        console.log("h".padEnd(6,'y'));

        let st2=`hello word 你好世界`;
        console.log(st2);

        let name="james";
        let age=13;
        let str3 =`我叫${name.substr(0,2)},今年${(19+60)}岁`;
        console.log(str3);


        function fun(){
             console.log("在字符串中居然可以调用函数");
             return "高薪起来,但是不要太辛苦，把命送了"
         }

         let str4 = `开始找工作了,${fun()}`
         console.log(str4);
    </script>
</body>
</html>